<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>员工注册</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
        }

        label, input[type=submit] {
            display: block;
            margin-bottom: 10px;
        }

        input[type=text], input[type=password], input[type=date] {
            width: 100%;
            padding: 5px;
            border-radius: 3px;
            border: 1px solid #ccc;
        }

        input[type=submit] {
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            border: none;
            cursor: pointer;
        }

        input[type=submit]:hover {
            background-color: #45a049;
        }

        .error {
            color: red;
            font-size: 12px;
            margin-top: 5px;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>员工注册页面</h1>
    <form action="/employees/register" method="post">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="Username" required>

        <label for="password">密码:</label>
        <input type="password" id="password" name="Password" required>

        <label for="dateOf">出生日期:</label>
        <input type="date" id="dateOf" name="DateOf" required>

        <label for="gender">性别:</label>
        <select id="gender" name="Gender" required>
            <option value="男">男</option>
            <option value="女">女</option>
            <option value="其他性别">其他</option>
        </select>

        <label for="hireDate">入职日期:</label>
        <input type="date" id="hireDate" name="HireDate" required>

        <label for="departmentId">部门ID:</label>
        <input type="number" id="departmentId" name="DepartmentId" required>

        <label for="position">职位:</label>
        <input type="text" id="position" name="Position" required>

        <label for="email">邮箱:</label>
        <input type="email" id="email" name="Email" required>

        <label for="phone">电话号码:</label>
        <input type="text" id="phone" name="Phone" required>

        <input type="submit" value="注册">
    </form>
</div>
</body>
</html>